package kr.hkit.powerjava.alone.windowbuider;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridLayout;
import java.awt.FlowLayout;

public class WorkFrameEx extends JFrame {

	private JPanel contentPane;
	private JPanel Center_Panel;
	private HeaderPanel North_Panel;
	private CenterPanel panel_1;
	private CenterPanel panel_2;
	private CenterPanel panel_3;
	private CenterPanel panel_4;
	private CenterPanel panel_5;
	private CenterPanel panel_6;
	private FooterPanel South_Panel;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					WorkFrameEx frame = new WorkFrameEx();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public WorkFrameEx() {
		initialize();
	}
	private void initialize() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 300 , 350);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		North_Panel = new HeaderPanel();
		contentPane.add(North_Panel, BorderLayout.NORTH);
		
		Center_Panel = new JPanel();
		contentPane.add(Center_Panel, BorderLayout.CENTER);
		Center_Panel.setLayout(new GridLayout(0, 1, 0, 0));
		
		panel_1 = new CenterPanel("사원번호");
		Center_Panel.add(panel_1);
		
		panel_2 = new CenterPanel("사원명");
		Center_Panel.add(panel_2);
		
		panel_3 = new CenterPanel("직책");
		Center_Panel.add(panel_3);
		
		panel_4 = new CenterPanel("매니져");
		Center_Panel.add(panel_4);
		
		panel_5 = new CenterPanel("급여");
		Center_Panel.add(panel_5);
		
		panel_6 = new CenterPanel("부서번호");
		Center_Panel.add(panel_6);
		
		South_Panel = new FooterPanel();
		contentPane.add(South_Panel, BorderLayout.SOUTH);
		
		
		
		pack();
	}

}
